3.534 \(\int \sec ^2(c+d x) (a+b \tan (c+d x))^3 \, dx\)

Optimal. Leaf size=22 \[ \frac{(a+b \tan (c+d x))^4}{4 b d} \]

[Out]

(a + b*Tan[c + d*x])^4/(4*b*d)

________________________________________________________________________________________

Rubi [A]  time = 0.0363167, antiderivative size = 22, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.095, Rules used = {3506, 32} \[ \frac{(a+b \tan (c+d x))^4}{4 b d} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^2*(a + b*Tan[c + d*x])^3,x]

[Out]

(a + b*Tan[c + d*x])^4/(4*b*d)

Rule 3506

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(b*f), Subst
[Int[(a + x)^n*(1 + x^2/b^2)^(m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x] && NeQ[a^2 + b
^2, 0] && IntegerQ[m/2]

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rubi steps

\begin{align*} \int \sec ^2(c+d x) (a+b \tan (c+d x))^3 \, dx &=\frac{\operatorname{Subst}\left (\int (a+x)^3 \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=\frac{(a+b \tan (c+d x))^4}{4 b d}\\ \end{align*}

Mathematica [B]  time = 0.154683, size = 57, normalized size = 2.59 \[ \frac{\tan (c+d x) \left (6 a^2 b \tan (c+d x)+4 a^3+4 a b^2 \tan ^2(c+d x)+b^3 \tan ^3(c+d x)\right )}{4 d} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^2*(a + b*Tan[c + d*x])^3,x]

[Out]

(Tan[c + d*x]*(4*a^3 + 6*a^2*b*Tan[c + d*x] + 4*a*b^2*Tan[c + d*x]^2 + b^3*Tan[c + d*x]^3))/(4*d)

________________________________________________________________________________________

Maple [B]  time = 0.061, size = 72, normalized size = 3.3 \begin{align*}{\frac{1}{d} \left ({\frac{{b}^{3} \left ( \sin \left ( dx+c \right ) \right ) ^{4}}{4\, \left ( \cos \left ( dx+c \right ) \right ) ^{4}}}+{\frac{a{b}^{2} \left ( \sin \left ( dx+c \right ) \right ) ^{3}}{ \left ( \cos \left ( dx+c \right ) \right ) ^{3}}}+{\frac{3\,b{a}^{2}}{2\, \left ( \cos \left ( dx+c \right ) \right ) ^{2}}}+{a}^{3}\tan \left ( dx+c \right ) \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^2*(a+b*tan(d*x+c))^3,x)

[Out]

1/d*(1/4*b^3*sin(d*x+c)^4/cos(d*x+c)^4+a*b^2*sin(d*x+c)^3/cos(d*x+c)^3+3/2*b*a^2/cos(d*x+c)^2+a^3*tan(d*x+c))

________________________________________________________________________________________

Maxima [A]  time = 1.18808, size = 27, normalized size = 1.23 \begin{align*} \frac{{\left (b \tan \left (d x + c\right ) + a\right )}^{4}}{4 \, b d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2*(a+b*tan(d*x+c))^3,x, algorithm="maxima")

[Out]

1/4*(b*tan(d*x + c) + a)^4/(b*d)

________________________________________________________________________________________

Fricas [B]  time = 1.83864, size = 181, normalized size = 8.23 \begin{align*} \frac{b^{3} + 2 \,{\left (3 \, a^{2} b - b^{3}\right )} \cos \left (d x + c\right )^{2} + 4 \,{\left (a b^{2} \cos \left (d x + c\right ) +{\left (a^{3} - a b^{2}\right )} \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right )}{4 \, d \cos \left (d x + c\right )^{4}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2*(a+b*tan(d*x+c))^3,x, algorithm="fricas")

[Out]

1/4*(b^3 + 2*(3*a^2*b - b^3)*cos(d*x + c)^2 + 4*(a*b^2*cos(d*x + c) + (a^3 - a*b^2)*cos(d*x + c)^3)*sin(d*x +
c))/(d*cos(d*x + c)^4)

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan{\left (c + d x \right )}\right )^{3} \sec ^{2}{\left (c + d x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**2*(a+b*tan(d*x+c))**3,x)

[Out]

Integral((a + b*tan(c + d*x))**3*sec(c + d*x)**2, x)

________________________________________________________________________________________

Giac [B]  time = 1.82681, size = 77, normalized size = 3.5 \begin{align*} \frac{b^{3} \tan \left (d x + c\right )^{4} + 4 \, a b^{2} \tan \left (d x + c\right )^{3} + 6 \, a^{2} b \tan \left (d x + c\right )^{2} + 4 \, a^{3} \tan \left (d x + c\right )}{4 \, d} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2*(a+b*tan(d*x+c))^3,x, algorithm="giac")

[Out]

1/4*(b^3*tan(d*x + c)^4 + 4*a*b^2*tan(d*x + c)^3 + 6*a^2*b*tan(d*x + c)^2 + 4*a^3*tan(d*x + c))/d